package arithmetic.jinritoutiao1.taotiao1;

import java.util.Arrays;
import java.util.TreeSet;

/**
 * Created by jiangfeng on 2018/3/24.
 */
public class Test {

    @org.junit.jupiter.api.Test
    public void test() {
        int[] a = {1, 6, 3, 2, 4};
        Arrays.sort(a);
        TreeSet b = new TreeSet<>();
        for (int i = 0; i < a.length; i++) {
            b.add(a[i]);
        }
        System.out.println(groovy.json.JsonOutput.toJson(a));

    }
}
